package com.chixing.day12_date_factory.homework;

import java.util.ArrayList;

public class MyOrder {
    private int orderId;
    private int orderNo;
    private float orderPrice;
    private String LocalDateTime;
    private String orderCustomer;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(int orderNo) {
        this.orderNo = orderNo;
    }

    public float getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(float orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getLocalDateTime() {
        return LocalDateTime;
    }

    public void setLocalDateTime(String localDateTime) {
        LocalDateTime = localDateTime;
    }

    public String getOrderCustomer() {
        return orderCustomer;
    }

    public void setOrderCustomer(String orderCustomer) {
        this.orderCustomer = orderCustomer;
    }
    public MyOrder(){}
    public MyOrder(int orderId,int orderNo,float orderPrice,String LocalDateTime,String orderCustomer){
        super();
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.orderPrice = orderPrice;
        this.LocalDateTime = LocalDateTime;
        this.orderCustomer = orderCustomer;
    }

    @Override
    public String toString() {
        return "用户：{" +
                "订单id=" + orderId +
                ", 订单编号=" + orderNo +
                ", 总价格=" + orderPrice +
                ", 下单时间='" + LocalDateTime + '\'' +
                ", 下单用户='" + orderCustomer + '\'' +
                '}';
    }
}
